<script>
import { getShowImage } from "../../../../utils"

export default {
  name: "thesaurusItem",
  methods: { getShowImage },
  props: {
    detail: {
      type: Object,
      default: () => ({}),
    },
  },
}
</script>

<template>
  <view class="component">
    <image :src="getShowImage(detail.thesaurusImg)" class="icon"></image>
    <view class="right">
      <view>
        <view class="name">{{ detail.thesaurusName }}</view>
        <view class="note">{{ detail.thesaurusNotes }}</view>
      </view>
      <view class="note">共 {{ detail.thesaurusNum }} 词</view>
    </view>
  </view>
</template>

<style scoped lang="scss">
.component {
  background: white;
  border-radius: 20rpx;
  padding: 30rpx;
  display: flex;
  > .icon {
    width: 130rpx;
    height: 150rpx;
  }
  > .right {
    width: 0;
    flex: 1;
    margin-left: 30rpx;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .name {
      color: var(--text-color);
      font-size: 34rpx;
			margin-bottom: 10rpx;
    }
    .note {
      color: var(--text-color-light);
      font-size: 28rpx;
    }
  }
}
</style>
